  <header class="main-header">
    <!-- Logo -->
    <a href="{:url('admin/index/index')}" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini"><b>C</b>MS</span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg"><b>KITE</b>CMS</span>
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </a>

      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
          <li><a target="_blank" href="{:url('index/index/index')}">网站主页</a></li>
          <!-- User Account: style can be found in dropdown.less -->
          {cms:member name="user"}
          <li class="dropdown user user-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <img src="{$user.avatar}" class="user-image" alt="User Image">
              <span class="hidden-xs">{$user.username}</span>
            </a>
            <ul class="dropdown-menu">
              <!-- User image -->
              <li class="user-header">
                <img src="{$user.avatar}" class="img-circle" alt="User Image">

                <p>
                  {$user.group_name}
                  <small>{$user.motto}</small>
                </p>
              </li>
              <!-- Menu Body -->
              <li class="user-body">
                <div class="row">
                  <div class="col-xs-6 text-center">
                    <a href="{:url('admin/user/edit', ['uid' => $user['uid']])}">个人资料</a>
                  </div>
                  <div class="col-xs-6 text-center">
                    <a href="{:url('admin/passport/logout')}">登出</a>
                  </div>
                </div>
                <!-- /.row -->
              </li>
            </ul>
          </li>
          {/cms:member}
        </ul>
      </div>
    </nav>
  </header>